package com.teamall.web.base.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class TownInfoArg {
    private String pk_name = "TOWN_ID";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<TownInfoCriteria> oredCriteria;

    public TownInfoArg() {
        oredCriteria = new ArrayList<TownInfoCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<TownInfoCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(TownInfoCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public TownInfoCriteria or() {
    	TownInfoCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public TownInfoCriteria createCriteria() {
    	TownInfoCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected TownInfoCriteria createCriteriaInternal() {
    	TownInfoCriteria criteria = new TownInfoCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<TownInfoCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<TownInfoCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<TownInfoCriterion> getAllCriteria() {
            return criteria;
        }

        public List<TownInfoCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new TownInfoCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new TownInfoCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new TownInfoCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new TownInfoCriterion(condition, value1, value2));
        }

        public TownInfoCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (TownInfoCriteria) this;
        }
        public TownInfoCriteria andTownIdIsNull() {
            addCriterion("TOWN_ID is null");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownIdIsNotNull() {
            addCriterion("TOWN_ID is not null");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownIdEqualTo(Integer value) {
            addCriterion("TOWN_ID =", value, "TOWN_ID");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownIdNotEqualTo(Integer value) {
            addCriterion("TOWN_ID <>", value, "TOWN_ID");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownIdGreaterThan(Integer value) {
            addCriterion("TOWN_ID >", value, "TOWN_ID");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("TOWN_ID >=", value, "TOWN_ID");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownIdLessThan(Integer value) {
            addCriterion("TOWN_ID <", value, "TOWN_ID");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownIdLessThanOrEqualTo(Integer value) {
            addCriterion("TOWN_ID <=", value, "TOWN_ID");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownIdLike(Integer value) {
            addCriterion("TOWN_ID like ", value, "TOWN_ID", 1);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownIdNotLike(Integer value) {
            addCriterion("TOWN_ID  not like ", value, "TOWN_ID", 1);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownIdLeftLike(Integer value) {
            addCriterion("TOWN_ID like ", value, "TOWN_ID", 0);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownIdNotLeftLike(Integer value) {
            addCriterion("TOWN_ID  not like ", value, "TOWN_ID", 0);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownIdRightLike(Integer value) {
            addCriterion("TOWN_ID like ", value, "TOWN_ID", 2);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownIdNotRightLike(Integer value) {
            addCriterion("TOWN_ID  not like ", value, "TOWN_ID", 2);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownIdIn(List<Integer> values) {
            addCriterion("TOWN_ID  in ", values, "TOWN_ID");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownIdNotIn(List<Integer> values) {
            addCriterion("TOWN_ID not in ", values, "TOWN_ID");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownIdBetween(Integer value1, Integer value2) {
            addCriterion("TOWN_ID between ", value1, value2, "TOWN_ID");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownIdNotBetween(Integer value1, Integer value2) {
            addCriterion("TOWN_ID not between ", value1, value2, "TOWN_ID");
            return (TownInfoCriteria) this;
        }
        public TownInfoCriteria andTownNameIsNull() {
            addCriterion("TOWN_NAME is null");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownNameIsNotNull() {
            addCriterion("TOWN_NAME is not null");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownNameEqualTo(String value) {
            addCriterion("TOWN_NAME =", value, "TOWN_NAME");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownNameNotEqualTo(String value) {
            addCriterion("TOWN_NAME <>", value, "TOWN_NAME");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownNameGreaterThan(String value) {
            addCriterion("TOWN_NAME >", value, "TOWN_NAME");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownNameGreaterThanOrEqualTo(String value) {
            addCriterion("TOWN_NAME >=", value, "TOWN_NAME");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownNameLessThan(String value) {
            addCriterion("TOWN_NAME <", value, "TOWN_NAME");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownNameLessThanOrEqualTo(String value) {
            addCriterion("TOWN_NAME <=", value, "TOWN_NAME");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownNameLike(String value) {
            addCriterion("TOWN_NAME like ", value, "TOWN_NAME", 1);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownNameNotLike(String value) {
            addCriterion("TOWN_NAME  not like ", value, "TOWN_NAME", 1);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownNameLeftLike(String value) {
            addCriterion("TOWN_NAME like ", value, "TOWN_NAME", 0);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownNameNotLeftLike(String value) {
            addCriterion("TOWN_NAME  not like ", value, "TOWN_NAME", 0);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownNameRightLike(String value) {
            addCriterion("TOWN_NAME like ", value, "TOWN_NAME", 2);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownNameNotRightLike(String value) {
            addCriterion("TOWN_NAME  not like ", value, "TOWN_NAME", 2);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownNameIn(List<String> values) {
            addCriterion("TOWN_NAME  in ", values, "TOWN_NAME");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownNameNotIn(List<String> values) {
            addCriterion("TOWN_NAME not in ", values, "TOWN_NAME");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownNameBetween(String value1, String value2) {
            addCriterion("TOWN_NAME between ", value1, value2, "TOWN_NAME");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownNameNotBetween(String value1, String value2) {
            addCriterion("TOWN_NAME not between ", value1, value2, "TOWN_NAME");
            return (TownInfoCriteria) this;
        }
        public TownInfoCriteria andTownDescIsNull() {
            addCriterion("TOWN_DESC is null");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownDescIsNotNull() {
            addCriterion("TOWN_DESC is not null");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownDescEqualTo(String value) {
            addCriterion("TOWN_DESC =", value, "TOWN_DESC");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownDescNotEqualTo(String value) {
            addCriterion("TOWN_DESC <>", value, "TOWN_DESC");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownDescGreaterThan(String value) {
            addCriterion("TOWN_DESC >", value, "TOWN_DESC");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownDescGreaterThanOrEqualTo(String value) {
            addCriterion("TOWN_DESC >=", value, "TOWN_DESC");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownDescLessThan(String value) {
            addCriterion("TOWN_DESC <", value, "TOWN_DESC");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownDescLessThanOrEqualTo(String value) {
            addCriterion("TOWN_DESC <=", value, "TOWN_DESC");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownDescLike(String value) {
            addCriterion("TOWN_DESC like ", value, "TOWN_DESC", 1);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownDescNotLike(String value) {
            addCriterion("TOWN_DESC  not like ", value, "TOWN_DESC", 1);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownDescLeftLike(String value) {
            addCriterion("TOWN_DESC like ", value, "TOWN_DESC", 0);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownDescNotLeftLike(String value) {
            addCriterion("TOWN_DESC  not like ", value, "TOWN_DESC", 0);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownDescRightLike(String value) {
            addCriterion("TOWN_DESC like ", value, "TOWN_DESC", 2);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownDescNotRightLike(String value) {
            addCriterion("TOWN_DESC  not like ", value, "TOWN_DESC", 2);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownDescIn(List<String> values) {
            addCriterion("TOWN_DESC  in ", values, "TOWN_DESC");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownDescNotIn(List<String> values) {
            addCriterion("TOWN_DESC not in ", values, "TOWN_DESC");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownDescBetween(String value1, String value2) {
            addCriterion("TOWN_DESC between ", value1, value2, "TOWN_DESC");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andTownDescNotBetween(String value1, String value2) {
            addCriterion("TOWN_DESC not between ", value1, value2, "TOWN_DESC");
            return (TownInfoCriteria) this;
        }
        public TownInfoCriteria andAidLeadingUnitIsNull() {
            addCriterion("AID_LEADING_UNIT is null");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAidLeadingUnitIsNotNull() {
            addCriterion("AID_LEADING_UNIT is not null");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAidLeadingUnitEqualTo(String value) {
            addCriterion("AID_LEADING_UNIT =", value, "AID_LEADING_UNIT");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAidLeadingUnitNotEqualTo(String value) {
            addCriterion("AID_LEADING_UNIT <>", value, "AID_LEADING_UNIT");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAidLeadingUnitGreaterThan(String value) {
            addCriterion("AID_LEADING_UNIT >", value, "AID_LEADING_UNIT");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAidLeadingUnitGreaterThanOrEqualTo(String value) {
            addCriterion("AID_LEADING_UNIT >=", value, "AID_LEADING_UNIT");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAidLeadingUnitLessThan(String value) {
            addCriterion("AID_LEADING_UNIT <", value, "AID_LEADING_UNIT");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAidLeadingUnitLessThanOrEqualTo(String value) {
            addCriterion("AID_LEADING_UNIT <=", value, "AID_LEADING_UNIT");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAidLeadingUnitLike(String value) {
            addCriterion("AID_LEADING_UNIT like ", value, "AID_LEADING_UNIT", 1);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAidLeadingUnitNotLike(String value) {
            addCriterion("AID_LEADING_UNIT  not like ", value, "AID_LEADING_UNIT", 1);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAidLeadingUnitLeftLike(String value) {
            addCriterion("AID_LEADING_UNIT like ", value, "AID_LEADING_UNIT", 0);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAidLeadingUnitNotLeftLike(String value) {
            addCriterion("AID_LEADING_UNIT  not like ", value, "AID_LEADING_UNIT", 0);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAidLeadingUnitRightLike(String value) {
            addCriterion("AID_LEADING_UNIT like ", value, "AID_LEADING_UNIT", 2);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAidLeadingUnitNotRightLike(String value) {
            addCriterion("AID_LEADING_UNIT  not like ", value, "AID_LEADING_UNIT", 2);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAidLeadingUnitIn(List<String> values) {
            addCriterion("AID_LEADING_UNIT  in ", values, "AID_LEADING_UNIT");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAidLeadingUnitNotIn(List<String> values) {
            addCriterion("AID_LEADING_UNIT not in ", values, "AID_LEADING_UNIT");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAidLeadingUnitBetween(String value1, String value2) {
            addCriterion("AID_LEADING_UNIT between ", value1, value2, "AID_LEADING_UNIT");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAidLeadingUnitNotBetween(String value1, String value2) {
            addCriterion("AID_LEADING_UNIT not between ", value1, value2, "AID_LEADING_UNIT");
            return (TownInfoCriteria) this;
        }
        public TownInfoCriteria andAllPopIsNull() {
            addCriterion("ALL_POP is null");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAllPopIsNotNull() {
            addCriterion("ALL_POP is not null");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAllPopEqualTo(Integer value) {
            addCriterion("ALL_POP =", value, "ALL_POP");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAllPopNotEqualTo(Integer value) {
            addCriterion("ALL_POP <>", value, "ALL_POP");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAllPopGreaterThan(Integer value) {
            addCriterion("ALL_POP >", value, "ALL_POP");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAllPopGreaterThanOrEqualTo(Integer value) {
            addCriterion("ALL_POP >=", value, "ALL_POP");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAllPopLessThan(Integer value) {
            addCriterion("ALL_POP <", value, "ALL_POP");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAllPopLessThanOrEqualTo(Integer value) {
            addCriterion("ALL_POP <=", value, "ALL_POP");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAllPopLike(Integer value) {
            addCriterion("ALL_POP like ", value, "ALL_POP", 1);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAllPopNotLike(Integer value) {
            addCriterion("ALL_POP  not like ", value, "ALL_POP", 1);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAllPopLeftLike(Integer value) {
            addCriterion("ALL_POP like ", value, "ALL_POP", 0);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAllPopNotLeftLike(Integer value) {
            addCriterion("ALL_POP  not like ", value, "ALL_POP", 0);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAllPopRightLike(Integer value) {
            addCriterion("ALL_POP like ", value, "ALL_POP", 2);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAllPopNotRightLike(Integer value) {
            addCriterion("ALL_POP  not like ", value, "ALL_POP", 2);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAllPopIn(List<Integer> values) {
            addCriterion("ALL_POP  in ", values, "ALL_POP");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAllPopNotIn(List<Integer> values) {
            addCriterion("ALL_POP not in ", values, "ALL_POP");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAllPopBetween(Integer value1, Integer value2) {
            addCriterion("ALL_POP between ", value1, value2, "ALL_POP");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andAllPopNotBetween(Integer value1, Integer value2) {
            addCriterion("ALL_POP not between ", value1, value2, "ALL_POP");
            return (TownInfoCriteria) this;
        }
        public TownInfoCriteria andResidentPopIsNull() {
            addCriterion("RESIDENT_POP is null");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andResidentPopIsNotNull() {
            addCriterion("RESIDENT_POP is not null");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andResidentPopEqualTo(Integer value) {
            addCriterion("RESIDENT_POP =", value, "RESIDENT_POP");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andResidentPopNotEqualTo(Integer value) {
            addCriterion("RESIDENT_POP <>", value, "RESIDENT_POP");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andResidentPopGreaterThan(Integer value) {
            addCriterion("RESIDENT_POP >", value, "RESIDENT_POP");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andResidentPopGreaterThanOrEqualTo(Integer value) {
            addCriterion("RESIDENT_POP >=", value, "RESIDENT_POP");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andResidentPopLessThan(Integer value) {
            addCriterion("RESIDENT_POP <", value, "RESIDENT_POP");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andResidentPopLessThanOrEqualTo(Integer value) {
            addCriterion("RESIDENT_POP <=", value, "RESIDENT_POP");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andResidentPopLike(Integer value) {
            addCriterion("RESIDENT_POP like ", value, "RESIDENT_POP", 1);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andResidentPopNotLike(Integer value) {
            addCriterion("RESIDENT_POP  not like ", value, "RESIDENT_POP", 1);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andResidentPopLeftLike(Integer value) {
            addCriterion("RESIDENT_POP like ", value, "RESIDENT_POP", 0);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andResidentPopNotLeftLike(Integer value) {
            addCriterion("RESIDENT_POP  not like ", value, "RESIDENT_POP", 0);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andResidentPopRightLike(Integer value) {
            addCriterion("RESIDENT_POP like ", value, "RESIDENT_POP", 2);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andResidentPopNotRightLike(Integer value) {
            addCriterion("RESIDENT_POP  not like ", value, "RESIDENT_POP", 2);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andResidentPopIn(List<Integer> values) {
            addCriterion("RESIDENT_POP  in ", values, "RESIDENT_POP");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andResidentPopNotIn(List<Integer> values) {
            addCriterion("RESIDENT_POP not in ", values, "RESIDENT_POP");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andResidentPopBetween(Integer value1, Integer value2) {
            addCriterion("RESIDENT_POP between ", value1, value2, "RESIDENT_POP");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andResidentPopNotBetween(Integer value1, Integer value2) {
            addCriterion("RESIDENT_POP not between ", value1, value2, "RESIDENT_POP");
            return (TownInfoCriteria) this;
        }
        public TownInfoCriteria andProvinceCodeIsNull() {
            addCriterion("PROVINCE_CODE is null");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andProvinceCodeIsNotNull() {
            addCriterion("PROVINCE_CODE is not null");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andProvinceCodeEqualTo(String value) {
            addCriterion("PROVINCE_CODE =", value, "PROVINCE_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andProvinceCodeNotEqualTo(String value) {
            addCriterion("PROVINCE_CODE <>", value, "PROVINCE_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andProvinceCodeGreaterThan(String value) {
            addCriterion("PROVINCE_CODE >", value, "PROVINCE_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andProvinceCodeGreaterThanOrEqualTo(String value) {
            addCriterion("PROVINCE_CODE >=", value, "PROVINCE_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andProvinceCodeLessThan(String value) {
            addCriterion("PROVINCE_CODE <", value, "PROVINCE_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andProvinceCodeLessThanOrEqualTo(String value) {
            addCriterion("PROVINCE_CODE <=", value, "PROVINCE_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andProvinceCodeLike(String value) {
            addCriterion("PROVINCE_CODE like ", value, "PROVINCE_CODE", 1);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andProvinceCodeNotLike(String value) {
            addCriterion("PROVINCE_CODE  not like ", value, "PROVINCE_CODE", 1);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andProvinceCodeLeftLike(String value) {
            addCriterion("PROVINCE_CODE like ", value, "PROVINCE_CODE", 0);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andProvinceCodeNotLeftLike(String value) {
            addCriterion("PROVINCE_CODE  not like ", value, "PROVINCE_CODE", 0);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andProvinceCodeRightLike(String value) {
            addCriterion("PROVINCE_CODE like ", value, "PROVINCE_CODE", 2);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andProvinceCodeNotRightLike(String value) {
            addCriterion("PROVINCE_CODE  not like ", value, "PROVINCE_CODE", 2);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andProvinceCodeIn(List<String> values) {
            addCriterion("PROVINCE_CODE  in ", values, "PROVINCE_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andProvinceCodeNotIn(List<String> values) {
            addCriterion("PROVINCE_CODE not in ", values, "PROVINCE_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andProvinceCodeBetween(String value1, String value2) {
            addCriterion("PROVINCE_CODE between ", value1, value2, "PROVINCE_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andProvinceCodeNotBetween(String value1, String value2) {
            addCriterion("PROVINCE_CODE not between ", value1, value2, "PROVINCE_CODE");
            return (TownInfoCriteria) this;
        }
        public TownInfoCriteria andCityCodeIsNull() {
            addCriterion("CITY_CODE is null");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCityCodeIsNotNull() {
            addCriterion("CITY_CODE is not null");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCityCodeEqualTo(String value) {
            addCriterion("CITY_CODE =", value, "CITY_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCityCodeNotEqualTo(String value) {
            addCriterion("CITY_CODE <>", value, "CITY_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCityCodeGreaterThan(String value) {
            addCriterion("CITY_CODE >", value, "CITY_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCityCodeGreaterThanOrEqualTo(String value) {
            addCriterion("CITY_CODE >=", value, "CITY_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCityCodeLessThan(String value) {
            addCriterion("CITY_CODE <", value, "CITY_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCityCodeLessThanOrEqualTo(String value) {
            addCriterion("CITY_CODE <=", value, "CITY_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCityCodeLike(String value) {
            addCriterion("CITY_CODE like ", value, "CITY_CODE", 1);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCityCodeNotLike(String value) {
            addCriterion("CITY_CODE  not like ", value, "CITY_CODE", 1);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCityCodeLeftLike(String value) {
            addCriterion("CITY_CODE like ", value, "CITY_CODE", 0);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCityCodeNotLeftLike(String value) {
            addCriterion("CITY_CODE  not like ", value, "CITY_CODE", 0);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCityCodeRightLike(String value) {
            addCriterion("CITY_CODE like ", value, "CITY_CODE", 2);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCityCodeNotRightLike(String value) {
            addCriterion("CITY_CODE  not like ", value, "CITY_CODE", 2);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCityCodeIn(List<String> values) {
            addCriterion("CITY_CODE  in ", values, "CITY_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCityCodeNotIn(List<String> values) {
            addCriterion("CITY_CODE not in ", values, "CITY_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCityCodeBetween(String value1, String value2) {
            addCriterion("CITY_CODE between ", value1, value2, "CITY_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCityCodeNotBetween(String value1, String value2) {
            addCriterion("CITY_CODE not between ", value1, value2, "CITY_CODE");
            return (TownInfoCriteria) this;
        }
        public TownInfoCriteria andCountryCodeIsNull() {
            addCriterion("COUNTRY_CODE is null");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCountryCodeIsNotNull() {
            addCriterion("COUNTRY_CODE is not null");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCountryCodeEqualTo(String value) {
            addCriterion("COUNTRY_CODE =", value, "COUNTRY_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCountryCodeNotEqualTo(String value) {
            addCriterion("COUNTRY_CODE <>", value, "COUNTRY_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCountryCodeGreaterThan(String value) {
            addCriterion("COUNTRY_CODE >", value, "COUNTRY_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCountryCodeGreaterThanOrEqualTo(String value) {
            addCriterion("COUNTRY_CODE >=", value, "COUNTRY_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCountryCodeLessThan(String value) {
            addCriterion("COUNTRY_CODE <", value, "COUNTRY_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCountryCodeLessThanOrEqualTo(String value) {
            addCriterion("COUNTRY_CODE <=", value, "COUNTRY_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCountryCodeLike(String value) {
            addCriterion("COUNTRY_CODE like ", value, "COUNTRY_CODE", 1);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCountryCodeNotLike(String value) {
            addCriterion("COUNTRY_CODE  not like ", value, "COUNTRY_CODE", 1);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCountryCodeLeftLike(String value) {
            addCriterion("COUNTRY_CODE like ", value, "COUNTRY_CODE", 0);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCountryCodeNotLeftLike(String value) {
            addCriterion("COUNTRY_CODE  not like ", value, "COUNTRY_CODE", 0);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCountryCodeRightLike(String value) {
            addCriterion("COUNTRY_CODE like ", value, "COUNTRY_CODE", 2);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCountryCodeNotRightLike(String value) {
            addCriterion("COUNTRY_CODE  not like ", value, "COUNTRY_CODE", 2);
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCountryCodeIn(List<String> values) {
            addCriterion("COUNTRY_CODE  in ", values, "COUNTRY_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCountryCodeNotIn(List<String> values) {
            addCriterion("COUNTRY_CODE not in ", values, "COUNTRY_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCountryCodeBetween(String value1, String value2) {
            addCriterion("COUNTRY_CODE between ", value1, value2, "COUNTRY_CODE");
            return (TownInfoCriteria) this;
        }

        public TownInfoCriteria andCountryCodeNotBetween(String value1, String value2) {
            addCriterion("COUNTRY_CODE not between ", value1, value2, "COUNTRY_CODE");
            return (TownInfoCriteria) this;
        }

    }

    public static class TownInfoCriteria extends GeneratedCriteria {

        protected TownInfoCriteria() {
            super();
        }
    }

    public static class TownInfoCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected TownInfoCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected TownInfoCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected TownInfoCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected TownInfoCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected TownInfoCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected TownInfoCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}